﻿using Abp.Domain.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GN.Pay.Core.Entities
{
    /// <summary>
    /// 商家会员
    /// </summary>
    [Table("Merchant_Member")]
    [Serializable]
    public class MerchantMember : Entity<string>
    {
        [Required]
        [StringLength(maximumLength: 32)]
        public override string Id
        {
            get
            {
                return base.Id;
            }

            set
            {
                base.Id = value;
            }
        }

        /// <summary>
        /// 商户Id
        /// </summary>
        [Required]
        [StringLength(maximumLength: 32)]
        public string MerchantId { get; set; }

        /// <summary>
        /// 会员编号
        /// </summary>
        [Required]
        [StringLength(maximumLength: 64)]
        public string MemberNo { get; set; }

        /// <summary>
        /// 会员名称
        /// </summary>
        [StringLength(maximumLength: 100)]
        public string MemberName { get; set; }

        /// <summary>
        /// 真实名称
        /// </summary>
        [StringLength(maximumLength: 100)]
        public string MemberRealName { get; set; }

        /// <summary>
        /// 会员类型(1=个人用户,2=企业用户)
        /// </summary>
        public int MemberType { get; set; }

        /// <summary>
        /// 是否认证
        /// </summary>
        public bool IsCertification { get; set; }

    }
}
